﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WSServer
{
    public enum WSResponseType
    {
        kWSResponseTypeDidSocketRegistered = 0,
        kWSResponseTypeDidTokenExpired = 1,
        kWSResponseTypeDidTokenRefreshed = 2,
        kWSResponseTypeMessage = 3
    }
    public class WSResponse
    {
        public string identifier { get; set; }
        public WSAccessToken token { get; set; }
        public WSResponseType type { get; set; }
        public string messageId { get; set; }
        public DateTime timetag { get; set; }
        public object userinfo { get; set; }

        public WSResponse()
        {
            timetag = DateTime.Now;
        }
    }
}
